var currentModule; 
function initTabs1ContentWellGroup(){
	$("#tabs1-content1").load(basePath+"app/main/pageWellGroup");
}
function initTab1ContentWell(){
	$("#tabs1-content1").load(basePath+"app/main/pageWell");
}
function initTab1ContentObsRecord(){
	$("#tabs1-content1").load(basePath+"app/main/obsRecord");
}
function initTab2ContentMonPrd(){
	$("#tabs1-content2").load(basePath+"app/main/monPrd");
}
$(function() {
	$( "#tabs" ).tabs({
  		activate: function( event, ui ) {
			switch(ui.newPanel.selector){
			case "#tabs-2":
				$("#report_acc1").css("height","auto");
				var a=$("#tabs1-content2").text();
				if($.trim(a)==""){
					initTab2ContentMonPrd();
				}
				break;
			}
  		}
	});
	$( "#accordion1" ).accordion();
	$( "#accordion2" ).accordion();
	initTabs1ContentWellGroup();
});
